home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Games / DroneZone / DZInput.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  851 b   |  56 lines  |  [TEXT/MPS ]

  1. /*
  2.  *    File:        DZInput.h
  3.  *
  4.  *    Copyright © 1996 Apple Computer, Inc.
  5.  */
  6.  
  7. #ifndef __DZInput__
  8. #define __DZInput__
  9.  
  10. #include <Types.h>
  11.  
  12.  
  13. typedef enum TInputEvent {
  14.     kInputEvent_None,
  15.     
  16.     // it's IMPORTANT that end be begin+1
  17.     kInputEvent_Fire_On,
  18.     kInputEvent_Fire_Off,
  19.     
  20.     // it's IMPORTANT that off be on+1
  21.     kInputEvent_InertialDampers_On,
  22.     kInputEvent_InertialDampers_Off,
  23.     
  24.     kInputEvent_InstantStop,
  25.     
  26.     kInputEvent_ShowHUD,
  27.     kInputEvent_ShowFPS,
  28.     kInputEvent_ShowThrottle,
  29.     kInputEvent_ShowVelocity,
  30.     
  31.     kInputEvent_Pause
  32.     
  33. } TInputEvent;
  34.  
  35.  
  36. void Input_Init(
  37.     void);
  38.  
  39. void Input_Exit(
  40.     void);
  41.  
  42. void Input_Configure(
  43.     void);
  44.  
  45. float Input_GetRoll     (void);
  46. float Input_GetPitch     (void);
  47. float Input_GetYaw         (void);
  48. float Input_GetThrottle (void);
  49.  
  50. TInputEvent Input_GetEvent(
  51.     void);
  52.  
  53. void Input_Activate(
  54.     Boolean                inActivate);
  55.  
  56. #endif /* __DZInput__ */